package br.edu.sistemaacademico.proxy;

import javax.swing.JFrame;

import br.edu.sistemaacademico.frmAluno;
import br.edu.sistemaacademico.pojo.Aluno;
import br.edu.sistemaacademico.pojo.Pessoa;
import client.ClientCommand;

public class LoginAluno implements Login{
	
	@Override
	public Pessoa request(String login, String senha) {
		Aluno aluno = (Aluno)ClientCommand.carregaObjeto("AlunoService","login = '" +login+"' and senha= '"+senha+"' ","");
		if(aluno!=null)
		    return aluno;

		return null;
	}

}
